from PyQt4.QtGui import QColor

ColorList = [ \
    [ # Black/Reds
        (  0,   0,   0), # Black
        (128,   0,   0),
        (255,   0,   0),
        (255,   0, 255),
        (255, 170, 191)
    ], 
    [ # Oranges
        (170,  64,   0),
        (255,  85,   0),
        (255, 170,   0),
        (255, 191,   0),
        (255, 191, 170)
    ], 
    [ # Yellows / Browns
        ( 64,  64,   0),
        (128, 128,   0),
        (170, 191,   0),
        (255, 255,   0),
        (255, 225, 170)
    ], 
    [ # Greens
        (  0,  64,   0),
        (  0, 170,   0),
        ( 64, 170,  85),
        (  0, 255,   0),
        (191, 255, 191)
    ], 
    [ # Blue-greens
        (  0,  64,  85),
        (  0, 128, 128),
        ( 64, 191, 191),
        (  0, 255, 255),
        (191, 255, 255)
    ], 
    [ # Blues
        (  0,   0, 128),
        (  0,   0, 255),
        ( 64,  85, 255),
        (  0, 191, 255),
        (170, 191, 255)
    ], 
    [ # Violets
        ( 64,  64, 170),
        ( 85,  85, 170),
        (128,   0, 128),
        (170,  64,  85),
        (191, 170, 255)
    ], 
    [ # Greys
        ( 64,  64,  64), 
        (128, 128, 128),
        (170, 170, 170),
        (191, 191, 191),
        (255, 255, 255) # White
    ]
] # ColorList

def printQRgba(value):
    print('0xff{:02x}{:02x}{:02x},'.format(*value))

print('\n#---------')
for row in iter(ColorList):
    for item in iter(row):
        printQRgba(item)
    print('#---------')
